import { FetchQualityItem, IQualityItem } from '@/api/meetingSpace'
import dayjs from '@/plugins/dayjs'
import { v4 as uuidv4 } from 'uuid'
export const transQualityItem = (item: FetchQualityItem): IQualityItem => {
	const event_time = dayjs(item.event_time).format('YYYY-MM-DD HH:mm:ss')
	const recovery_time = item.recovery_time ? dayjs(item.recovery_time).format('YYYY-MM-DD HH:mm:ss') : '一 一'
	return {
		id: uuidv4(),
		mt_name: item.mt_name,
		event_time,
		recovery_time,
		description: item.description,
		suggestion: item.suggestion,
	}
}
